<?php 
    $page = $this->uri->segment(2);
?>
<!-- Header -->
<!DOCTYPE html>
<html lang="en">
<head> 

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<link rel="shortcut icon" href="../../docs-<?php echo base_url(); ?>assets/ico/favicon.png">

<title>Website Title</title>

<!-- Bootstrap core --> 
    <link href="<?php echo base_url(); ?>assets/css/bootstrap.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>assets/css/font-awesome.css" rel="stylesheet">

<!-- CSS Plugin -->
    <link href="<?php echo base_url(); ?>assets/fonts/aller/stylesheet.css" rel="stylesheet">
    
    <!-- Yamm -->
    <link href="<?php echo base_url(); ?>modules/yamm3-master/yamm/yamm.css" rel="stylesheet">  
    
    <!-- Slidebar -->  
	<link href="<?php echo base_url(); ?>modules/Slidebars-master/slidebars.min.css" rel="stylesheet"> 
    
    <!-- Flexslider -->
    <link rel="stylesheet" href="<?php echo base_url(); ?>modules/FlexSlider-version-2.2/flexslider.css" type="text/css" media="screen" />
    
    <!-- Owl Carousel -->
    <link href="<?php echo base_url(); ?>modules/owl.carousel/owl-carousel/owl.carousel.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>modules/owl.carousel/owl-carousel/owl.theme.css" rel="stylesheet">
    
<!-- Custom styles for this template -->
	<link href="<?php echo base_url(); ?>assets/style.css" rel="stylesheet">
  <script src="<?php echo base_url(); ?>assets/js/jquery-1.10.2.min.js"></script>

</head>
<body>
<div id="sb-site">

<?PHP $this->load->view("frontend/template/frontend_header_template") ?>

<!-- Banner -->

<div class="banner block">
    <!-- Slider -->      
  <div class="banner-wrapper">
      <div class="flexslider">
          <ul class="slides">
              <li>
                  <img src="<?php echo base_url()?>uploads/images/slide-car-01.jpg">
              </li>
              <li>
                  <img src="<?php echo base_url()?>uploads/images/slide-car-02.jpg">
              </li>         
          </ul>
      </div>
  </div>
    <!-- /Slider -->        
</div>

<!-- /Banner -->

<!-- Main Body -->

<div class="base-body base-white">
    <div class="car-view">
        <div class="car-top-menu">
            <ul>
                <li <?php if($page == 'overview') echo 'class="active"'; ?>><a href="<?php echo base_url() ?>FCar/overview">Overview</a></li>
                <li <?php if($page != 'overview') echo 'class="active"'; ?>><a href="<?php echo base_url() ?>FCar/description">Detail</a></li>
            </ul>
            <?PHP if($page != 'overview')
            {
            ?>
            <div class="car-sub-menu">
                <div class="container">
                    <ul>
                        <li <?php if($page == 'description') echo 'class="active"'; ?>><a href="<?php echo base_url() ?>FCar/description">Description</a></li>
                        <li <?php if($page == 'feature') echo 'class="active"'; ?>><a href="<?php echo base_url() ?>FCar/feature">Feature</a></li>
                        <li <?php if($page == 'gallery') echo 'class="active"'; ?>><a href="<?php echo base_url() ?>FCar/gallery">Gallery</a></li>
                        <li <?php if($page == 'type') echo 'class="active"'; ?>><a href="<?php echo base_url() ?>FCar/type">Type</a></li>
                        <li <?php if($page == 'specification') echo 'class="active"'; ?>><a href="<?php echo base_url() ?>FCar/specification">Spec Engine</a></li>
                        <li <?php if($page == 'accesorries') echo 'class="active"'; ?>><a href="<?php echo base_url() ?>FCar/accesorries">Accesorries</a></li>
                        <li <?php if($page == 'spareparts') echo 'class="active"'; ?>><a href="<?php echo base_url() ?>FCar/spareparts">Spareparts</a></li>
                        <li <?php if($page == 'brochure') echo 'class="active"'; ?>><a href="<?php echo base_url() ?>FCar/brochure">Brochure</a></li>
                        <li <?php if($page == 'custom') echo 'class="active"'; ?>><a href="<?php echo base_url() ?>FCar/custom">Custom Page</a></li>
                    </ul>
                </div>
            </div>
            <?PHP
            }
            ?>
        </div>
        <?PHP echo $_contents ?>
        
    </div>
</div>

<!-- /Main Body -->

<?PHP 
$this->load->view('frontend/template/footer_template');
?>
</body>
</html>
